<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:s="http://jboss.com/products/seam/taglib"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:a4j="http://richfaces.org/a4j"
    template="layout/template.xhtml">

<ui:define name="body">

    <h:form id="amusrCrear">
    
      <rich:panel >
            <f:facet name="header">
            	<h:outputText value="#{resourceApp.amusr_titulo_crear}"/>
            </f:facet>
           
            <div class="dialog">
                <h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value">
                	<h:outputLabel for="idLogin" value="* #{resourceApp.amusr_crear_login}"/>
					<h:inputText id="idLogin" value="#{amusrBean.amusr.auslog}" required="true"/>
                </h:panelGrid>
            </div>
            <div class="dialog">
                <h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value">
                	<h:outputLabel for="nombre" value="* #{resourceApp.amusr_crear_nombre}"/>
					<h:inputText id="nombre" value="#{amusrBean.amusr.ausnom}" required="true"/>
                </h:panelGrid>
            </div>
              <div class="dialog ">
<!--                 <h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value"> -->
<!--                 	<h:outputLabel for="marcaesp" value="* #{resourceApp.amusr_crear_marca_especial}"/> -->
<!--                 	<h:selectOneMenu id="idListMarca" value="#{amusrBean.amusr.ausesp}"> -->
<!--                 		<f:selectItems value="#{amusrBean.marcaEspecialSI}"/>	 -->
<!--                 	</h:selectOneMenu> -->
<!-- 				</h:panelGrid> -->
            </div>
                <div class="dialog ">
<!--                 <h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value"> -->
<!--                 	<h:outputLabel for="entidad" value="* #{resourceApp.amusr_crear_entidad}"/> -->
<!-- 					<h:selectOneMenu id="idListEntidad" value="#{amusrBean.amusr.aencod}"> -->
<!--                 		<f:selectItems value="#{amusrBean.entidadListaSI}"/>	 -->
<!--                 	</h:selectOneMenu> -->
<!--                 </h:panelGrid> -->
            </div>
                <div class="dialog ">
                <h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value">
<!--                 	<h:outputLabel for="perfil" value="* #{resourceApp.amusr_crear_perfil}"/> -->
<!-- 					<h:selectOneMenu id="idListPerfil" value="#{amusrBean.amusr.aprnom}"> -->
<!--                 		<f:selectItems value="#{amusrBean.perfilListaSI}"/>	 -->
<!--                 	</h:selectOneMenu> -->
                </h:panelGrid>
<!--             <div class="dialog"> -->
<!--                 <h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value"> -->
<!--                 	<h:outputLabel for="email" value="* #{resourceApp.amusr_crear_email}"/> -->
<!-- 					<h:inputText id="email" value="#{amusrBean.amusr.ausmai}" required="true"/> -->
<!--                 </h:panelGrid> -->
<!--             </div> -->
<!--               <div class="dialog"> -->
<!--                 <h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value"> -->
<!--                 	<h:outputLabel for="estado" value="* #{resourceApp.amusr_crear_estado}"/> -->
<!-- 					<h:inputText id="estado" value="#{amusrBean.amusr.ausest}" required="true"/> -->
<!--                 </h:panelGrid> -->
<!--             </div>     -->
            </div>
<!--             <div class="dialog"> -->
<!--                 <h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value"> -->
<!--                 	<h:outputLabel for="sesiones" value="* #{resourceApp.amusr_crear_no_sesiones_permitidas}"/> -->
<!-- 					<h:inputText id="sesiones" value="#{amusrBean.amusr.ausses}" required="true"/> -->
<!--                 </h:panelGrid> -->
<!--             </div> -->
<!--             <div class="dialog"> -->
<!--                 <h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value"> -->
<!--                 	<h:outputLabel for="id" value="* #{resourceApp.amusr_crear_no_id}"/> -->
<!-- 					<h:inputText id="id" value="#{amusrBean.amusr.ausdco}" required="true"/> -->
<!--                 </h:panelGrid> -->
<!--             </div> -->
            <div class="dialog">
                <h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value">
                	<h:outputLabel for="area" value="* #{resourceApp.amusr_crear_area}"/>
					<h:inputText id="area" value="#{amusrBean.amusr.ausaru}" required="true"/>
                </h:panelGrid>
            </div>
<!--             <div class="dialog"> -->
<!--                 <h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value"> -->
<!--                 	<h:outputLabel for="telefono" value="* #{resourceApp.amusr_crear_telefono}"/> -->
<!-- 					<h:inputText id="telefono" value="#{amusrBean.amusr.austel}" required="true"/> -->
<!--                 </h:panelGrid> -->
<!--             </div> -->
            
        </rich:panel>
        
        <div class="actionButtons">
            <h:commandButton id="idBtnAceptar" value="#{resourceApp.btn_aceptar}" action="#{amusrBean.crearUsuario}"/>
        </div>
        </h:form>
    
<!--     <ui:include src="/comunes/showStatus.xhtml"/> -->
<!-- 	<a4j:status onstart="#{rich:component('wait')}.show()" onstop="#{rich:component('wait')}.hide()" /> -->

</ui:define>

</ui:composition>